//引入vue模块
import Vue from 'vue'

import VueRouter from 'vue-router'
Vue.use(VueRouter)

import First from '../pages/first'
import Jian from '../pages/jian'
import Fen from '../pages/fen'
import Fen1 from '../components/fen1'
import Car from '../pages/car'
import My from '../pages/my'
import Success from '../pages/success'
import Pageone from '../components/pageone'
import pageoneC from '../components/pageoneC'
import Pagetwo from '../components/pagetwo'
import JHcontent from  '../components/JHcontent'
import xiangqing from '../pages/xiangqing'
import toBuy from '../pages/toBuy'
import Tiao from '../components/tiaozhuan'

import axios from 'axios'
Vue.prototype.axios = axios;

import backTop from '../components/backtop'

let routes = [
	{path:'/components/tiaozhuan',component:Tiao},
	{path:'/components/success',component:Success},
	{path:'/',component:First},
	{path:'/first',component: First},
	{path:'/components/pageone',component:Pageone},
	{path:'/components/pagetwo',component:Pagetwo},
	 {path:'/my',component:My},
	{path:'/jian',component:Jian},
	{path:'/jian',component:Jian,children:[
		{name: 'xiangqing',path: '/jian/xiangqing',component: xiangqing}
	]},
	{path: '/pages/xiangqing',component: xiangqing},
	{path: '/pages/toBuy',component: toBuy},
	{path:'/fen',component:Fen},
	{path:'/fen1',component:Fen1},
	{path:'/car',component:Car},

	{path:'/my',component:My,children:[
		{path:'/my/success',componet:Success}
]}]

//根据路由规则创建路有对象
let router = new VueRouter({
	routes
})


export default router
